<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/main.js"></script>
</head>
<body>
	<h1>用户列表</h1>
	<table>
		<tr><td>ID</td><td>Name</td><td>Email</td><td>Grade</td><td>Salary</td><td>修改用户</td><td>删除用户</td></tr>
		<c:forEach items="${emplist }" var="emp">
			<tr>
				<td>${emp.id }</td>
				<td>${emp.name }</td>
				<td>${emp.email }</td>
				<td>${emp.grade }</td>
				<td>${emp.salary }</td>
				<td><a href="${pageContext.request.contextPath }/employee.do?flag=updateEmployeeUI&id=${emp.id }">修改用户</a></td>
				<td><a class="del" href="${pageContext.request.contextPath }/employee.do?flag=deletEmployee&id=${emp.id }">删除用户</a></td>
			</tr>
		</c:forEach>
	</table>
	<c:forEach var="i" begin="1" end="${pageCount }">
		<a href="${pageContext.request.contextPath }/employee.do?flag=listEmployeeUI&pageNow=${i}">${i }</a>
	</c:forEach>
</body>
</html>